package com.zktr.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.zktr.pojo.leftmemu;
import com.zktr.service.LeftmemuService;

/**
 * @author yf  
 * @version 创建时间：2018年9月5日  下午3:14:25
 * tags
 */
@WebServlet("/LeftMemuServlet")
public class LeftMemuServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
	public void queryManneger(HttpServletRequest req,HttpServletResponse res) throws IOException{
		PrintWriter out = res.getWriter();
		LeftmemuService lService = new LeftmemuService();
		List<leftmemu> manneger=lService.queryManneger();
		HttpSession session = req.getSession();
		session.setAttribute("list", manneger);
		/*return "r:/yf/test.jsp";*/
		out.print("0");
	}
	public void queryChildShow(HttpServletRequest req,HttpServletResponse res) throws IOException{
		LeftmemuService lService = new LeftmemuService();
		List<leftmemu> manneger=lService.queryManneger();
		PrintWriter out = res.getWriter();
		HttpSession session = req.getSession();
		session.setAttribute("list", manneger);
		out.print(0);
	}
}